package com.common.util.mypage;

import java.util.List;

/**
 * @description:
 * @author: zyj
 * @create: 2020-01-07 11:05
 **/
public class SimplePage {
    protected static final long serialVersionUID = 5136213157391895517L;

    protected int pageNo = 1;// 页码，默认是第一页 page
    protected int pageSize = 10;// 每页显示的记录数，默认是10 rows
    protected int total;// 总记录数 totalRecord
    protected List rows;// 对应的当前页记录

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public SimplePage setRows(List rows) {
        this.rows = rows;
        return this;
    }
}
